/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package inventorymanagement;

/**
 *
 * @author Administrator
 */

import java.awt.BorderLayout;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
import java.util.Vector;

import javax.swing.JComboBox;
import javax.swing.JFrame;


import javax.swing.*;
import java.awt.*;
import java.awt.event.*;



public class AvailableItems extends JFrame implements ActionListener{
    JLabel label1,label2,label3,label4,label5,label6,label7,label8,label9,label10;
    
    JFrame frame = new JFrame("Items List");
    JButton PRODUCTLIST;
    
    public void available(){
        System.out.println("hi");
        label1 = new JLabel();
        label1.setText("The Availabale Items In product no 0 Are  ");
        
        label2 = new JLabel();
        label2.setText("1.MotorolaW377-"+Items.I1MotorolaW377);   
        
        label3 = new JLabel();
        label3.setText("2.iPhone1G-"+Items.I1iPhone1G);     
        
        label4 = new JLabel();
        label4.setText("3.Nokia6300-"+Items.I1Nokia6300); 
        
        
       

        PRODUCTLIST=new JButton("PRODUCTLIST");
        
        JPanel panel = new JPanel(new GridLayout(5,1));
         panel.add(label1);
         panel.add(label2);
         panel.add(label3);
         panel.add(label4);
         
         panel.add(PRODUCTLIST);
         
         frame.add(panel);
         frame.setSize(500,500);
         frame.setVisible(true);
         
          PRODUCTLIST.addActionListener(this);
      }
    
     public void available1(){
        System.out.println("hi");
        label1 = new JLabel();
        label1.setText("The Availabale Items In product no 1 Are  ");
        
        label2 = new JLabel();
        label2.setText("1.MotorolaW377-"+Items.I2NokiaX3);   
        
        label3 = new JLabel();
        label3.setText("2.iPhone1G-"+Items.I2MotorolaMg);     
        
       
        
        
       

        PRODUCTLIST=new JButton("PRODUCTLIST");
        
        JPanel panel = new JPanel(new GridLayout(4,1));
         panel.add(label1);
         panel.add(label2);
         panel.add(label3);
      //   panel.add(label4);
         
         panel.add(PRODUCTLIST);
         
         frame.add(panel);
         frame.setSize(500,500);
         frame.setVisible(true);
         
          PRODUCTLIST.addActionListener(this);
      }
    public void actionPerformed(ActionEvent ae)
    {
          frame.dispose();
          new ComboBox();
    }
  

}
